#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
int main() {
	/*Hp hp;
	HeapInit(&hp);
 	HeapPush(&hp, 13);
	HeapPush(&hp, 22);
	HeapPush(&hp, 2);
	HeapPush(&hp, 21);
	HeapPush(&hp, 3);
	HeapPush(&hp, 1);
	HeapPriint(&hp);
	printf("\n");
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPriint(&hp);*/
	int arr[10] = { 19,15,20,17,13,10,1,2,3 };
	HeapSort(arr, 9);
	int i = 0;
	while (i < 9) {
		printf("%d ", arr[i++]);
	}
}